/* 
 * File:   cfilerecord.h
 * Author: Peter Gerhat
 *
 * Created on November 29, 2009, 6:16 PM
 */

#ifndef _FILERECORD_H
#define	_FILERECORD_H

#include <string>
#include <string.h>

#include <iostream>
#include <cstring>
#include <string>

/*
 *Class representing each configuration file records identification key
 *
 */
class CFileRecord {
public:


   /**
    *creates an empty instance
    */
    CFileRecord();

    /**
     * creates an instance
     * @param name name of property
     * @param section section of property
     */
    CFileRecord(std::string name, std::string section);

    /**
     * destructor
     */
    virtual ~CFileRecord();

    /**
     * compares two instances
     * @param record other instance
     * @return true if second instance is lower in alphabetic order
     */
    bool operator ==(const CFileRecord &record) const;
    /**
     * compares two instances
     * @param record other instance
     * @return true if instances have same content
     */
    bool operator < (const CFileRecord &record) const;
    /**
     * compares two instances
     * @param record other instance
     * @return true if second instance is lower in alphabetic order
     */
    bool operator > (const CFileRecord &record) const;

    std::string section;
    std::string name;
};

#endif	/* _FILERECORD_H */

